atomic: add atomic_and operations
authorRoger Pau Monné <roger.pau@citrix.com>
Wed, 26 Feb 2020 09:51:31 +0000 (10:51 +0100)
committerJan Beulich <jbeulich@suse.com>
Wed, 26 Feb 2020 09:51:31 +0000 (10:51 +0100)
commit75b7411617108bdc820d337064b38ac09f794fc5
tree485a974846a67be9299fe8a30a942a76068d9cae
parent9c84bc0046536bef202176b2b43038dc5d2ebf6e
atomic: add atomic_and operations

To x86 and Arm. This performs an atomic AND operation against an
atomic_t variable with the provided mask.

Requested-by: Jan Beulich <jbeulich@suse.com>
Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Julien Grall <julien@xen.org>
xen/include/asm-arm/arm32/atomic.h
xen/include/asm-arm/arm64/atomic.h
xen/include/asm-x86/atomic.h